package ecode

import (
	"github.com/zhufuyi/sponge/pkg/errcode"
)

// tkOrderAfterSale http service level error code
// each resource name corresponds to a unique number (http type), the number range is 1~100, if there is the same number, trigger panic
var (
	tkOrderAfterSaleNO       = 31
	tkOrderAfterSaleName     = "tkOrderAfterSale"
	tkOrderAfterSaleBaseCode = errcode.HCode(tkOrderAfterSaleNO)

	ErrCreateTkOrderAfterSale      = errcode.NewError(tkOrderAfterSaleBaseCode+1, "failed to create "+tkOrderAfterSaleName)
	ErrDeleteByIDTkOrderAfterSale  = errcode.NewError(tkOrderAfterSaleBaseCode+2, "failed to delete "+tkOrderAfterSaleName)
	ErrDeleteByIDsTkOrderAfterSale = errcode.NewError(tkOrderAfterSaleBaseCode+3, "failed to delete by batch ids "+tkOrderAfterSaleName)
	ErrUpdateByIDTkOrderAfterSale  = errcode.NewError(tkOrderAfterSaleBaseCode+4, "failed to update "+tkOrderAfterSaleName)
	ErrGetByIDTkOrderAfterSale     = errcode.NewError(tkOrderAfterSaleBaseCode+5, "failed to get "+tkOrderAfterSaleName+" details")
	ErrListByIDsTkOrderAfterSale   = errcode.NewError(tkOrderAfterSaleBaseCode+6, "failed to list by batch ids "+tkOrderAfterSaleName)
	ErrListTkOrderAfterSale        = errcode.NewError(tkOrderAfterSaleBaseCode+7, "failed to list of "+tkOrderAfterSaleName)
	// error codes are globally unique, adding 1 to the previous error code
)
